<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "bus_member_refund".
 *
 * @property integer $refund_id
 * @property string $member_id
 * @property string $refund_type
 * @property string $refund_time
 * @property string $refund_amount
 * @property string $refund_reason
 * @property string $shop_id
 * @property string $boss_id
 */
class BusMemberRefund extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'bus_member_refund';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['member_id', 'refund_type', 'refund_amount', 'refund_reason', 'shop_id'], 'required'],
            [['member_id', 'shop_id', 'boss_id'], 'integer'],
            [['refund_time'], 'safe'],
            [['refund_amount'], 'number'],
            [['refund_type', 'refund_reason'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'refund_id' => 'Refund ID',
            'member_id' => 'Member ID',
            'refund_type' => 'Refund Type',
            'refund_time' => 'Refund Time',
            'refund_amount' => 'Refund Amount',
            'refund_reason' => 'Refund Reason',
            'shop_id' => 'Shop ID',
            'boss_id' => 'Boss ID',
        ];
    }
}
